import http from '@/common/utils/request.js'

export const message = {
	//获取消息模板列表
	getMessageTemplateList(data){
		return http.get('/system/messageTemplate/', {params:data, custom:{}})
	},
	//获取会话列表
	getConversationList(data){
		return http.get('/chat/conversation/', {params:data, custom:{noLoading: true}})
	},
	//获取消息列表
	getMessageList(data){
		return http.get('/chat/message/', {params:data, custom:{custom:{noLoading: true}}})
	},
	//发送消息
	sendMessage(data){
		return http.post('/chat/message/sendMessage/', data, {custom:{}})
	},
	//读取消息
	readMessage(data){
		return http.post('/chat/message/readMessage/', data, {custom:{}})
	},
}